package com.example.consumer.dao;

import com.example.common.Sudoku;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface SudokuMapper {
    @Options(useGeneratedKeys = true, keyColumn = "id")
    @Insert("insert into sudoku(content, initial_number) values(#{content}, #{initialNumber})")
    void insertBoard(Sudoku sudoku);
}
